home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 December / december_2001.iso / Browsers / Netscape 6.1 / browser.xpi / bin / chrome / comm.jar / content / navigator / turboDialog.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-07-09  |  3.1 KB  |  93 lines

  1. <?xml version="1.0"?>
  2. <!-- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2
  3.  -
  4.  - The contents of this file are subject to the Netscape Public
  5.  - License Version 1.1 (the "License"); you may not use this file
  6.  - except in compliance with the License. You may obtain a copy of
  7.  - the License at http://www.mozilla.org/NPL/
  8.  -
  9.  - Software distributed under the License is distributed on an "AS
  10.  - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.  - implied. See the License for the specific language governing
  12.  - rights and limitations under the License.
  13.  -
  14.  - The Original Code is Mozilla Communicator client code.
  15.  -
  16.  - The Initial Developer of the Original Code is Netscape Communications
  17.  - Corporation.  Portions created by Netscape are
  18.  - Copyright (C) 1998 Netscape Communications Corporation. All
  19.  - Rights Reserved.
  20.  -
  21.  - Contributor(s):
  22.  -  Blake Ross <blake@netscape.com> (Original Author)
  23.  -->
  24.  
  25. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> 
  26. <?xml-stylesheet href="chrome://communicator/skin/profile/profile.css" type="text/css"?>
  27. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  28. <!DOCTYPE window [
  29.   <!ENTITY % turboDialogDTD SYSTEM "chrome://navigator/locale/turboDialog.dtd" >
  30.   %turboDialogDTD;
  31.   <!ENTITY % dialogOverlayDTD SYSTEM "chrome://global-platform/locale/platformDialogOverlay.dtd" >
  32.   %dialogOverlayDTD;
  33. ]>
  34.  
  35. <window id="turboDialog"
  36.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.         title="&exitWarningTitle.label;"
  38.         class="dialog"
  39.         orient="vertical"
  40.         onload="document.getElementById('okButton').focus();"
  41.         onunload="SetTurboPref();">
  42.   <script type="application/x-javascript">
  43.     <![CDATA[
  44.       function SetTurboPref() {
  45.         var showDialog = document.getElementById("showAgain").checked;
  46.         try {
  47.           var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPrefBranch);
  48.           if (prefs)
  49.             prefs.setBoolPref("browser.turbo.showDialog", !showDialog);
  50.         }
  51.         catch(e) {
  52.         }
  53.       }
  54.     ]]>
  55.   </script>
  56.  
  57.   <keyset id="dialogKeys"/>
  58.  
  59.   <box flex="1">
  60.     <box autostretch="never" valign="top">
  61.       <image class="message-icon"/>
  62.     </box>
  63.     <separator orient="vertical" class="thin"/>
  64.     <vbox flex="1">
  65.       <!-- text -->
  66.       <html flex="1">&exitWarningMsg.label;</html>
  67.       <vbox flex="1" style="max-width: 36em;"/>
  68.       <separator/>
  69.       <box>
  70.         <spring flex="1"/>
  71.         <image id="turboTrayImage"/>
  72.         <spring flex="1"/>
  73.       </box>
  74.       <separator class="thin"/>
  75.       <separator class="thin"/>
  76.       <!-- checkbox -->
  77.       <box autostretch="never">
  78.         <checkbox id="showAgain" label="&exitWarningCheckbox.label;"
  79.                   accesskey="&exitWarningCheckbox.accesskey;"/>
  80.       </box>
  81.     </vbox>
  82.   </box>
  83.  
  84.   <separator class="thin"/>
  85.   <separator class="thin"/>
  86.   <box>
  87.     <spring flex="1"/>
  88.     <button id="okButton" label="&okButton.label;" oncommand="window.close();" default="true"/>
  89.     <spring flex="1"/>
  90.   </box> 
  91.  
  92. </window>
  93.